package com.guoxin.decorator;

public class DrinkDecorator extends Order {
	private Order drink;
	private Seasoning seasoning;
	public DrinkDecorator(Seasoning seasoning, Order order) {
		this.seasoning = seasoning;
		this.drink = order;
	}

	@Override
	public float cost() {
		return seasoning.getPrice() + drink.cost();
	}

	@Override
	public String desc() {
		return drink.desc()+"&&"+seasoning.desc();
	}

}
